//引入mongoose
const mongoose = require("mongoose");

//创建骨架
var classifySchema = mongoose.Schema({
  "title" : String,
  "titleId" : Number,
  "lsit" : Array
});

//创建模型
var classifyModel = mongoose.model('classifys', classifySchema);
//暴露
module.exports = classifyModel;
